// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
  display: none;
}

/* 修改 Element UI 输入框的 placeholder 样式 */
.el-input__inner::placeholder {
  color: #ccc !important;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
  font-weight: 500;
  font-style: 12px;
}

/* 修改 textarea 的 placeholder */
.el-textarea__inner::placeholder {
  color: #ccc !important;
  font-style: 12px;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
  font-weight: 500;
}

.el-table th.el-table__cell.is-leaf,
.el-table td.el-table__cell {
  border: none;
}

.el-table .el-table__header-wrapper th,
.el-table .el-table__fixed-header-wrapper th {
  background-color: #F7F9FD !important;
  height: 56px !important;
}

.el-table {
  td {
    height: 56px !important;
  }
}

.el-table .el-table__header-wrapper {
  border-radius: 28px;
}

.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: #F7F9FD;

  &:nth-of-type(1) {
    border-radius: 12px 0 0 12px;
  }

  &:last-child {
    border-radius: 0 12px 12px 0;
  }
}

.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
  background-color: #fdfdfd;

  &:nth-of-type(1) {
    border-radius: 12px 0 0 12px;
  }

  &:last-child {
    border-radius: 0 12px 12px 0;
  }
}

.el-table .el-table__header-wrapper th,
.el-table .el-table__fixed-header-wrapper th {
  color: #3572F0 !important;
}

.search-box {
  .el-button {
    border-radius: 12px;
  }
}

.el-dialog__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-dialog {
  border-radius: 30px;
  background: linear-gradient(180deg, #E8EFFF 0%, #FFFFFF 50%);

  .el-dialog__header {
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 38px;

    &::before {
      content: "";
      width: 4px;
      height: 16px;
      background: #3572F0;
      border-radius: 3px;
      position: absolute;
      left: 24px;
      top: 50%;
      transform: translateY(-50%);
    }
  }

  .dialog-footer {
    display: flex;
    justify-content: center;

    .el-button {
      width: 20%;
      max-width: 200px;
      border-radius: 12px;
    }

    .el-button+.el-button {
      margin-left: 20px;
    }
  }

  .el-dialog__body {
    max-height: 600px;
    overflow: auto;
  }
}

.el-form {
  .el-form-item__label {
    color: #0C0C0D;
  }

  .el-input__inner,
  .vue-treeselect__control {
    border-radius: 12px;
  }
}